Gellner's theory of nationalism